package com.winning.pmph.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

/**
 * exam_outline_tag
 *
 * @author
 */
@Data
@TableName(value = "exam_outline_tag")
public class ExamOutlineTag extends BaseEntity {

    private static final long serialVersionUID = 5844336320122541466L;
    /**
     * id
     */
    @TableId
    private String id;

    /**
     * 考试大纲ID
     */
    private String examOutlineId;

    /**
     * 标签名称(level是1:单元名,level是2:细目名)
     */
    private String name;

    /**
     * 父节点ID
     */
    private String parentId;

    /**
     * 对应级别 1 一级 2 二级 以此类推
     */
    private Integer level;

    /**
     * 当前节点在所在层级的顺序。从0开始。
     */
    private Integer sort;

    @TableField(exist = false)
    private List<ExamOutlineTag> children;

    @TableField(exist = false)
    private List<String> parentAndSelfNameList;
}